home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
X11
/
Fresco
/
build
/
Unix
/
config
/
cf
/
hpLib.rules
< prev
next >
Wrap
Text File
|
1995-07-12
|
3KB
|
105 lines
XCOMM $XConsortium: hpLib.rules,v 1.4 93/09/11 17:57:18 rws Exp $
/*
* HP shared library rules
*/
#ifndef HasSharedLibraries
#define HasSharedLibraries YES
#endif
#ifndef SharedDataSeparation
#define SharedDataSeparation NO
#endif
#ifndef SharedCodeDef
#define SharedCodeDef /**/
#endif
#ifndef SharedLibraryDef
#define SharedLibraryDef /**/
#endif
#ifndef ShLibIncludeFile
#define ShLibIncludeFile <hpLib.tmpl>
#endif
#ifndef SharedLibraryLoadFlags
#define SharedLibraryLoadFlags -b
#endif
#ifndef PositionIndependentCFlags
#define PositionIndependentCFlags +z
#endif
#ifndef UseInstalled
#define ExtraLoadOptions -L$(USRLIBDIR)
#endif
/*
* InstallSharedLibrary - generate rules to install the shared library.
*/
#ifndef InstallSharedLibrary
#define InstallSharedLibrary(libname,rev,dest) @@\
install:: Concat(lib,libname.sl.rev) @@\
MakeDir($(DESTDIR)dest) @@\
$(INSTALL) $(INSTALLFLAGS) $(INSTLIBFLAGS) Concat(lib,libname.sl.rev) $(DESTDIR)dest @@\
$(RM) Concat($(DESTDIR)dest/lib,libname.sl) @@\
$(LN) Concat(lib,libname.sl.rev) Concat($(DESTDIR)dest/lib,libname.sl)
#endif /* InstallSharedLibrary */
/*
* InstallSharedLibraryData - generate rules to install the shared library data
*/
#ifndef InstallSharedLibraryData
#define InstallSharedLibraryData(libname,rev,dest)
#endif /* InstallSharedLibraryData */
/*
* SharedCplusplusLibraryTarget - generate rules to create a shared C++
* library; use $(CXXLINK) instead of $(LD) in case the library needs
* global constructors to be called.
*
* Not tested yet; send any bug fixes to fresco@x.org.
*/
#ifndef SharedCplusplusLibraryTarget
#define SharedCplusplusLibraryTarget(libname,rev,solist,down,up,need_libs) @@\
AllTarget(Concat(lib,libname.sl.rev)) @@\
@@\
Concat(lib,libname.sl.rev): solist @@\
$(RM) $@ @@\
$(CXXLINK) -o $@ $(SHLIBLDFLAGS) solist need_libs @@\
$(RM) Concat(lib,libname.sl) @@\
$(LN) $@ Concat(lib,libname.sl) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.sl.rev) Concat(lib,libname.sl)
#endif /* SharedCplusplusLibraryTarget */
/*
* SharedLibraryTarget - generate rules to create a shared library;
* build it into a different name so that we do not hose people by having
* the library gone for long periods.
*/
#ifndef SharedLibraryTarget
#define SharedLibraryTarget(libname,rev,solist,down,up) @@\
AllTarget(Concat(lib,libname.sl.rev)) @@\
@@\
Concat(lib,libname.sl.rev): solist @@\
$(RM) $@~ @@\
(cd down; $(LD) -o up/$@~ $(SHLIBLDFLAGS) solist) @@\
$(RM) $@ @@\
$(MV) $@~ $@ @@\
$(RM) Concat(lib,libname.sl) @@\
$(LN) $@ Concat(lib,libname.sl) @@\
LinkBuildLibrary($@) @@\
LinkBuildLibrary(Concat(lib,libname.sl)) @@\
@@\
clean:: @@\
$(RM) Concat(lib,libname.sl.rev) Concat(lib,libname.sl)
#endif /* SharedLibraryTarget */
/*
* SharedLibraryDataTarget - generate rules to create shlib data file;
*/
#ifndef SharedLibraryDataTarget
#define SharedLibraryDataTarget(libname,rev,salist)
#endif /* SharedLibraryTarget */